package nsoft.swing.window;

public class DefaultApplictionContext {

	public void init(){
		//ApplicationController applicationController = new ApplicationController();
	//	applicationController.
	}
	public ApplicationController openSession(){
		SessionContext sessionContext= new SessionContext(new UserContext());
		sessionContext.setApplicationTitle("Web UI Manager Test");
		Session session = new Session();
		session.setSessionContext(sessionContext);
		ApplicationController applicationController = session.openSession(sessionContext);
		applicationController.setUiType(UiType.UI_TYPE_WEB);
		applicationController.setMenuContext(new DefaultMenuContext());
		applicationController.startApplication();
		return applicationController;
	}

}
